﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public partial class ExpenseExportation
    {
        public static ExpenseExportation Get(DAL.DataAccessLayer dal, Guid reportId, String type)
        {
            DataAccessDataContext da = dal.DataContext;

            var q = from e in da.ExpenseExportations
                    where e.ReportId.Equals(reportId) && e.Type.Equals(type)
                    select e;
            return q.Single<ExpenseExportation>();
        }
    }
}
